package com.hmall.common.Constants;

/**
 * RabbitMQ常量类
 */
public class MqConstants {
    /**
     * 交换机名称
     */
    public static final String PAY_EXCHANGE = "pay.direct";
    
    /**
     * 队列名称
     */
    public static final String PAY_SUCCESS_QUEUE = "trade.pay.success.queue";
    
    /**
     * Binding Key
     */
    public static final String PAY_SUCCESS_KEY = "pay.success";

    /**
     * 延迟交换机名称
     * 用于处理延迟订单相关消息的direct类型交换机
     */
    public static final String DELAY_EXCHANGE_NAME = "trade.delay.direct";
    
    /**
     * 延迟订单队列名称
     * 用于存储延迟处理的订单消息队列
     */
    public static final String DELAY_ORDER_QUEUE_NAME = "trade.delay.order.queue";
    
    /**
     * 延迟订单路由键
     * 用于将订单消息路由到延迟订单队列的routing key
     */
    public static final String DELAY_ORDER_KEY = "delay.order.query";

    public static final String ITEM_SAVE_KEY = "item.save";
    public static final String ITEM_DELETE_KEY = "item.delete";
    public static final String ITEM_EXCHANGE = "item.direct";
    public static final String ITEM_SAVE_QUEUE = "item.save.queue";
    public static final String ITEM_DELETE_QUEUE = "item.delete.queue";
}
